<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>eCommerce: Plik źródłowy D:/CentrumXP/e-Commerce/eCommerceDev/SklepWebApplication/controls/ctrlPager.ascx.cs</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Wygenerowano przez Doxygen 1.6.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Szukaj');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Strona&nbsp;główna</span></a></li>
      <li><a href="namespaces.html"><span>Pakiety</span></a></li>
      <li><a href="annotated.html"><span>Klasy</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Szukaj" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;plików</span></a></li>
      <li><a href="globals.html"><span>Składowe&nbsp;plików</span></a></li>
    </ul>
  </div>
<h1>D:/CentrumXP/e-Commerce/eCommerceDev/SklepWebApplication/controls/ctrlPager.ascx.cs</h1><a href="ctrl_pager_8ascx_8cs.html">Idź do dokumentacji tego pliku.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a><a class="code" href="ctrl_pager_8ascx_8cs.html#a81a223a02c34d82b47199f08308847f2">00001</a> ﻿using <a class="code" href="_common_tools_8cs.html#a81a223a02c34d82b47199f08308847f2">System</a>;
<a name="l00002"></a>00002 <span class="keyword">using</span> <a class="code" href="_common_tools_8cs.html#a81a223a02c34d82b47199f08308847f2">System</a>.Collections.Generic;
<a name="l00003"></a>00003 <span class="keyword">using</span> <a class="code" href="_common_tools_8cs.html#a81a223a02c34d82b47199f08308847f2">System</a>.Linq;
<a name="l00004"></a>00004 <span class="keyword">using</span> <a class="code" href="_common_tools_8cs.html#a81a223a02c34d82b47199f08308847f2">System</a>.Web;
<a name="l00005"></a>00005 <span class="keyword">using</span> <a class="code" href="_common_tools_8cs.html#a81a223a02c34d82b47199f08308847f2">System</a>.Web.UI;
<a name="l00006"></a>00006 <span class="keyword">using</span> <a class="code" href="_common_tools_8cs.html#a81a223a02c34d82b47199f08308847f2">System</a>.Web.UI.WebControls;
<a name="l00007"></a>00007 
<a name="l00008"></a><a class="code" href="classcontrols__ctrl_pager.html">00008</a> <span class="keyword">public</span> <span class="keyword">partial class </span><a class="code" href="classcontrols__ctrl_pager.html">controls_ctrlPager</a> : <a class="code" href="_common_tools_8cs.html#a81a223a02c34d82b47199f08308847f2">System</a>.Web.UI.UserControl
<a name="l00009"></a>00009 {
<a name="l00010"></a>00010 <span class="preprocessor">    #region CONSTANTS</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span>
<a name="l00012"></a><a class="code" href="classcontrols__ctrl_pager.html#ad8a2748e1ae469121f416303d7fc21fe">00012</a>     <span class="keyword">public</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="classcontrols__ctrl_pager.html#ad8a2748e1ae469121f416303d7fc21fe">SHOW_PAGES_COUNT</a> = 9;
<a name="l00013"></a><a class="code" href="classcontrols__ctrl_pager.html#a6e102890e77801579bd027fe10c2298a">00013</a>     <span class="keyword">public</span> <span class="keyword">const</span> <span class="keywordtype">string</span> <a class="code" href="classcontrols__ctrl_pager.html#a6e102890e77801579bd027fe10c2298a">LINK_PAGER_NAME</a> = <span class="stringliteral">&quot;lnkPage&quot;</span>;
<a name="l00014"></a>00014 
<a name="l00015"></a>00015     <span class="keyword">private</span> <span class="keyword">const</span> <span class="keywordtype">string</span> PAGE_NUMBER_KEY = <span class="stringliteral">&quot;PageNumber&quot;</span>;
<a name="l00016"></a>00016     <span class="keyword">private</span> <span class="keyword">const</span> <span class="keywordtype">string</span> LAST_COUNT_KEY = <span class="stringliteral">&quot;LastItemCount&quot;</span>;
<a name="l00017"></a>00017     <span class="keyword">private</span> <span class="keyword">const</span> <span class="keywordtype">string</span> PAGE_SIZE_KEY = <span class="stringliteral">&quot;ctrlPager_PageSize&quot;</span>;
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">    #endregion CONSTANTS</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00021"></a>00021 <span class="preprocessor">    #region VARIABLES</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00023"></a>00023     <span class="keyword">private</span> <span class="keywordtype">bool</span> mustRender;
<a name="l00024"></a>00024     <span class="keyword">private</span> <span class="keywordtype">bool</span> rendered;
<a name="l00025"></a>00025     <span class="keyword">private</span> <span class="keywordtype">int</span> itemCount = -1;
<a name="l00026"></a>00026     <span class="keyword">private</span> <span class="keywordtype">int</span> size = -1;
<a name="l00027"></a>00027     <span class="keyword">private</span> <span class="keywordtype">int</span> pageNumber = -1;
<a name="l00028"></a>00028 
<a name="l00029"></a><a class="code" href="classcontrols__ctrl_pager.html#af5ab8896978317eb137114ba12471699">00029</a>     <span class="keyword">public</span> <span class="keyword">event</span> GridViewPageEventHandler <a class="code" href="classcontrols__ctrl_pager.html#af5ab8896978317eb137114ba12471699">PageIndexChanged</a>;
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="preprocessor">    #endregion VARIABLES</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00033"></a>00033 <span class="preprocessor">    #region PROPERTIES</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035     <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="classcontrols__ctrl_pager.html#a05113b99a7c100bb0f9132ce93ef9322">ItemCount</a>
<a name="l00036"></a><a class="code" href="classcontrols__ctrl_pager.html#a05113b99a7c100bb0f9132ce93ef9322">00036</a>     {
<a name="l00037"></a>00037         <span class="keyword">get</span>
<a name="l00038"></a>00038         {
<a name="l00039"></a>00039             <span class="keywordflow">if</span> (itemCount &lt; 0)
<a name="l00040"></a>00040             {
<a name="l00041"></a>00041                 <span class="keywordtype">object</span> obj = ViewState[LAST_COUNT_KEY];
<a name="l00042"></a>00042                 <span class="keywordflow">if</span> (obj != null)
<a name="l00043"></a>00043                     itemCount = (int)obj;
<a name="l00044"></a>00044                 <span class="keywordflow">else</span>
<a name="l00045"></a>00045                     itemCount = 0;
<a name="l00046"></a>00046             }
<a name="l00047"></a>00047             <span class="keywordflow">return</span> itemCount;
<a name="l00048"></a>00048         }
<a name="l00049"></a>00049         <span class="keyword">set</span>
<a name="l00050"></a>00050         {
<a name="l00051"></a>00051             mustRender = itemCount != value || mustRender;
<a name="l00052"></a>00052             itemCount = value;
<a name="l00053"></a>00053             ViewState[LAST_COUNT_KEY] = itemCount;
<a name="l00054"></a>00054         }
<a name="l00055"></a>00055     }
<a name="l00056"></a>00056 
<a name="l00057"></a>00057     <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="classcontrols__ctrl_pager.html#af803cf7841d0c7db312077bf9816002a">PageSize</a>
<a name="l00058"></a><a class="code" href="classcontrols__ctrl_pager.html#af803cf7841d0c7db312077bf9816002a">00058</a>     {
<a name="l00059"></a>00059         <span class="keyword">get</span>
<a name="l00060"></a>00060         {
<a name="l00061"></a>00061             <span class="keywordflow">if</span> (size &lt; 0)
<a name="l00062"></a>00062             {
<a name="l00063"></a>00063                 <span class="keywordtype">object</span> obj = ViewState[PAGE_SIZE_KEY];
<a name="l00064"></a>00064                 <span class="keywordflow">if</span> (obj != null)
<a name="l00065"></a>00065                     size = (int)obj;
<a name="l00066"></a>00066                 <span class="keywordflow">else</span>
<a name="l00067"></a>00067                     size = 50;
<a name="l00068"></a>00068             }
<a name="l00069"></a>00069             <span class="keywordflow">return</span> size;
<a name="l00070"></a>00070         }
<a name="l00071"></a>00071         <span class="keyword">set</span>
<a name="l00072"></a>00072         {
<a name="l00073"></a>00073             mustRender = size != value || mustRender;
<a name="l00074"></a>00074             size = value;
<a name="l00075"></a>00075             ViewState[PAGE_SIZE_KEY] = size;
<a name="l00076"></a>00076         }
<a name="l00077"></a>00077     }
<a name="l00078"></a>00078 
<a name="l00079"></a>00079     <span class="keyword">public</span> <span class="keywordtype">int</span> <a class="code" href="classcontrols__ctrl_pager.html#aa624928f072c8cdc11febd613557d44e">PageNumber</a>
<a name="l00080"></a><a class="code" href="classcontrols__ctrl_pager.html#aa624928f072c8cdc11febd613557d44e">00080</a>     {
<a name="l00081"></a>00081         <span class="keyword">get</span>
<a name="l00082"></a>00082         {
<a name="l00083"></a>00083             <span class="keywordflow">if</span> (pageNumber &lt; 1)
<a name="l00084"></a>00084             {
<a name="l00085"></a>00085                 <span class="keywordtype">object</span> obj = ViewState[PAGE_NUMBER_KEY];
<a name="l00086"></a>00086                 <span class="keywordflow">if</span> (obj != null &amp;&amp; (<span class="keywordtype">int</span>)obj &gt; 0)
<a name="l00087"></a>00087                     pageNumber = (<span class="keywordtype">int</span>)obj;
<a name="l00088"></a>00088                 <span class="keywordflow">else</span>
<a name="l00089"></a>00089                     pageNumber = 1;
<a name="l00090"></a>00090             }
<a name="l00091"></a>00091               
<a name="l00092"></a>00092             <span class="keywordflow">return</span> pageNumber;
<a name="l00093"></a>00093         }
<a name="l00094"></a>00094         <span class="keyword">set</span>
<a name="l00095"></a>00095         {
<a name="l00096"></a>00096             mustRender = pageNumber != value || mustRender;
<a name="l00097"></a>00097             pageNumber = value;
<a name="l00098"></a>00098             ViewState[PAGE_NUMBER_KEY] = pageNumber;
<a name="l00099"></a>00099         }
<a name="l00100"></a>00100     }
<a name="l00101"></a>00101 
<a name="l00102"></a>00102 <span class="preprocessor">    #endregion PROPERTIES</span>
<a name="l00103"></a>00103 <span class="preprocessor"></span>
<a name="l00104"></a>00104 <span class="preprocessor">    #region METHODS</span>
<a name="l00105"></a>00105 <span class="preprocessor"></span>
<a name="l00106"></a><a class="code" href="classcontrols__ctrl_pager.html#ae29f5edbd758c5ddb5eb480a9eadb31e">00106</a>     <span class="keyword">protected</span> <span class="keyword">override</span> <span class="keywordtype">void</span> <a class="code" href="classcontrols__ctrl_pager.html#ae29f5edbd758c5ddb5eb480a9eadb31e">EnsureChildControls</a>()
<a name="l00107"></a>00107     {
<a name="l00108"></a>00108         base.EnsureChildControls();
<a name="l00109"></a>00109         <span class="keywordflow">if</span> (!rendered || mustRender)
<a name="l00110"></a>00110             <a class="code" href="classcontrols__ctrl_pager.html#afae64db95c89bdc296dc16c215db5b59">RenderPager</a>();
<a name="l00111"></a>00111     }
<a name="l00112"></a>00112 
<a name="l00113"></a><a class="code" href="classcontrols__ctrl_pager.html#afae64db95c89bdc296dc16c215db5b59">00113</a>     <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="classcontrols__ctrl_pager.html#afae64db95c89bdc296dc16c215db5b59">RenderPager</a>()
<a name="l00114"></a>00114     {
<a name="l00115"></a>00115         <span class="keywordtype">int</span> visiblePageCount = <a class="code" href="classcontrols__ctrl_pager.html#ad8a2748e1ae469121f416303d7fc21fe">SHOW_PAGES_COUNT</a>;
<a name="l00116"></a>00116         <span class="keywordtype">int</span> lastIndex = 1;
<a name="l00117"></a>00117 
<a name="l00118"></a>00118         LinkButton lnk = null;
<a name="l00119"></a>00119 
<a name="l00120"></a>00120         <span class="keywordflow">if</span> (<a class="code" href="classcontrols__ctrl_pager.html#a05113b99a7c100bb0f9132ce93ef9322">ItemCount</a> == 0)
<a name="l00121"></a>00121             lastIndex = 1;
<a name="l00122"></a>00122         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classcontrols__ctrl_pager.html#a05113b99a7c100bb0f9132ce93ef9322">ItemCount</a> % <a class="code" href="classcontrols__ctrl_pager.html#af803cf7841d0c7db312077bf9816002a">PageSize</a> == 0)
<a name="l00123"></a>00123             lastIndex = <a class="code" href="classcontrols__ctrl_pager.html#a05113b99a7c100bb0f9132ce93ef9322">ItemCount</a> / <a class="code" href="classcontrols__ctrl_pager.html#af803cf7841d0c7db312077bf9816002a">PageSize</a>;
<a name="l00124"></a>00124         <span class="keywordflow">else</span>
<a name="l00125"></a>00125             lastIndex = <a class="code" href="classcontrols__ctrl_pager.html#a05113b99a7c100bb0f9132ce93ef9322">ItemCount</a> / <a class="code" href="classcontrols__ctrl_pager.html#af803cf7841d0c7db312077bf9816002a">PageSize</a> + 1;
<a name="l00126"></a>00126 
<a name="l00127"></a>00127         <span class="keywordtype">int</span> oneSidePage = (visiblePageCount - 1) / 2;
<a name="l00128"></a>00128         <span class="keywordtype">int</span> startIndex = <a class="code" href="classcontrols__ctrl_pager.html#aa624928f072c8cdc11febd613557d44e">PageNumber</a> - oneSidePage;
<a name="l00129"></a>00129         <span class="keywordtype">int</span> distance = 0;
<a name="l00130"></a>00130 
<a name="l00131"></a>00131         <span class="keywordflow">if</span> (startIndex &lt; 1)
<a name="l00132"></a>00132         {
<a name="l00133"></a>00133             distance = visiblePageCount - lastIndex;
<a name="l00134"></a>00134             <span class="keywordflow">if</span> (distance &gt; 0)
<a name="l00135"></a>00135                 visiblePageCount -= distance;
<a name="l00136"></a>00136             startIndex = 1;
<a name="l00137"></a>00137         }
<a name="l00138"></a>00138         <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="classcontrols__ctrl_pager.html#aa624928f072c8cdc11febd613557d44e">PageNumber</a> + oneSidePage &gt; lastIndex)
<a name="l00139"></a>00139         {
<a name="l00140"></a>00140             startIndex = lastIndex - visiblePageCount + 1;
<a name="l00141"></a>00141             <span class="keywordflow">if</span> (startIndex &lt; 1)
<a name="l00142"></a>00142             {
<a name="l00143"></a>00143                 distance = visiblePageCount - lastIndex;
<a name="l00144"></a>00144                 <span class="keywordflow">if</span> (distance &gt; 0)
<a name="l00145"></a>00145                     visiblePageCount -= distance;
<a name="l00146"></a>00146                 startIndex = 1;
<a name="l00147"></a>00147             }
<a name="l00148"></a>00148         }
<a name="l00149"></a>00149 
<a name="l00150"></a>00150         pnlPager.Controls.Clear();
<a name="l00151"></a>00151 
<a name="l00152"></a>00152         lnk = <span class="keyword">new</span> LinkButton();
<a name="l00153"></a>00153         lnk.ID = <a class="code" href="classcontrols__ctrl_pager.html#a6e102890e77801579bd027fe10c2298a">LINK_PAGER_NAME</a> + <span class="stringliteral">&quot;_first&quot;</span>;
<a name="l00154"></a>00154         lnk.CommandArgument = <span class="stringliteral">&quot;1&quot;</span>;
<a name="l00155"></a>00155         lnk.CommandName = <span class="stringliteral">&quot;Page&quot;</span>;
<a name="l00156"></a>00156         lnk.Text = <span class="stringliteral">&quot;&lt;&lt;&quot;</span>;
<a name="l00157"></a>00157         lnk.Command += <span class="keyword">new</span> CommandEventHandler(lnkPage_Command);
<a name="l00158"></a>00158         lnk.CssClass = <span class="stringliteral">&quot;cmsPager-link&quot;</span>;
<a name="l00159"></a>00159 
<a name="l00160"></a>00160         pnlPager.Controls.Add(lnk);
<a name="l00161"></a>00161 
<a name="l00162"></a>00162         <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; visiblePageCount; i++)
<a name="l00163"></a>00163         {
<a name="l00164"></a>00164             lnk = <span class="keyword">new</span> LinkButton();
<a name="l00165"></a>00165             lnk.ID = <a class="code" href="classcontrols__ctrl_pager.html#a6e102890e77801579bd027fe10c2298a">LINK_PAGER_NAME</a> + i.ToString();
<a name="l00166"></a>00166             lnk.CommandArgument = (startIndex + i).ToString();
<a name="l00167"></a>00167             lnk.CommandName = <span class="stringliteral">&quot;Page&quot;</span>;
<a name="l00168"></a>00168             lnk.Text = (startIndex + i).ToString();
<a name="l00169"></a>00169             lnk.Command += <span class="keyword">new</span> CommandEventHandler(lnkPage_Command);
<a name="l00170"></a>00170             lnk.CssClass = <span class="stringliteral">&quot;cmsPager-link&quot;</span>;
<a name="l00171"></a>00171 
<a name="l00172"></a>00172             <span class="keywordflow">if</span> (startIndex + i == <a class="code" href="classcontrols__ctrl_pager.html#aa624928f072c8cdc11febd613557d44e">PageNumber</a>)
<a name="l00173"></a>00173                 lnk.Style[HtmlTextWriterStyle.FontWeight] = <span class="stringliteral">&quot;Bold&quot;</span>;
<a name="l00174"></a>00174 
<a name="l00175"></a>00175             pnlPager.Controls.Add(lnk);
<a name="l00176"></a>00176         }
<a name="l00177"></a>00177 
<a name="l00178"></a>00178         lnk = <span class="keyword">new</span> LinkButton();
<a name="l00179"></a>00179         lnk.ID = <a class="code" href="classcontrols__ctrl_pager.html#a6e102890e77801579bd027fe10c2298a">LINK_PAGER_NAME</a> + <span class="stringliteral">&quot;_last&quot;</span>;
<a name="l00180"></a>00180         lnk.CommandArgument = lastIndex.ToString();
<a name="l00181"></a>00181         lnk.CommandName = <span class="stringliteral">&quot;Page&quot;</span>;
<a name="l00182"></a>00182         lnk.Text = <span class="stringliteral">&quot;&gt;&gt;&quot;</span>;
<a name="l00183"></a>00183         lnk.Command += <span class="keyword">new</span> CommandEventHandler(lnkPage_Command);
<a name="l00184"></a>00184         lnk.CssClass = <span class="stringliteral">&quot;cmsPager-link&quot;</span>;
<a name="l00185"></a>00185         pnlPager.Controls.Add(lnk);
<a name="l00186"></a>00186 
<a name="l00187"></a>00187         rendered = <span class="keyword">true</span>;
<a name="l00188"></a>00188         mustRender = <span class="keyword">false</span>;
<a name="l00189"></a>00189     }
<a name="l00190"></a>00190 
<a name="l00191"></a>00191 <span class="preprocessor">    #endregion METHODS</span>
<a name="l00192"></a>00192 <span class="preprocessor"></span>
<a name="l00193"></a>00193 <span class="preprocessor">    #region EVENTS</span>
<a name="l00194"></a>00194 <span class="preprocessor"></span>
<a name="l00195"></a>00195     <span class="keywordtype">void</span> lnkPage_Command(<span class="keywordtype">object</span> sender, CommandEventArgs e)
<a name="l00196"></a>00196     {
<a name="l00197"></a>00197         <a class="code" href="classcontrols__ctrl_pager.html#aa624928f072c8cdc11febd613557d44e">PageNumber</a> = <span class="keywordtype">int</span>.Parse(e.CommandArgument.ToString());
<a name="l00198"></a>00198         <span class="keywordflow">if</span> (<a class="code" href="classcontrols__ctrl_pager.html#af5ab8896978317eb137114ba12471699">PageIndexChanged</a> != null)
<a name="l00199"></a>00199             <a class="code" href="classcontrols__ctrl_pager.html#af5ab8896978317eb137114ba12471699">PageIndexChanged</a>(sender, <span class="keyword">new</span> GridViewPageEventArgs(pageNumber));
<a name="l00200"></a>00200     }
<a name="l00201"></a>00201 
<a name="l00202"></a>00202 <span class="preprocessor">    #endregion EVENTS</span>
<a name="l00203"></a>00203 <span class="preprocessor"></span>
<a name="l00204"></a>00204 <span class="preprocessor">    #region PAGE EVENTS</span>
<a name="l00205"></a>00205 <span class="preprocessor"></span>
<a name="l00206"></a><a class="code" href="classcontrols__ctrl_pager.html#ad2372ce66475a70b1730adfc8ee3b3ed">00206</a>     <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="classcontrols__ctrl_pager.html#ad2372ce66475a70b1730adfc8ee3b3ed">Page_Init</a>(<span class="keywordtype">object</span> sender, EventArgs e)
<a name="l00207"></a>00207     {
<a name="l00208"></a>00208         mustRender = <span class="keyword">false</span>;
<a name="l00209"></a>00209         rendered = <span class="keyword">false</span>;
<a name="l00210"></a>00210     }
<a name="l00211"></a>00211 
<a name="l00212"></a><a class="code" href="classcontrols__ctrl_pager.html#ac042d36b527b6bd72e732ba492871c94">00212</a>     <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="classcontrols__ctrl_pager.html#ac042d36b527b6bd72e732ba492871c94">Page_Load</a>(<span class="keywordtype">object</span> sender, EventArgs e)
<a name="l00213"></a>00213     {
<a name="l00214"></a>00214         <span class="keywordflow">if</span> (IsPostBack)
<a name="l00215"></a>00215             <a class="code" href="classcontrols__ctrl_pager.html#afae64db95c89bdc296dc16c215db5b59">RenderPager</a>();
<a name="l00216"></a>00216     }
<a name="l00217"></a>00217 
<a name="l00218"></a><a class="code" href="classcontrols__ctrl_pager.html#ad3d41941d26b264a6786390fdfb75704">00218</a>     <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="classcontrols__ctrl_pager.html#ad3d41941d26b264a6786390fdfb75704">Page_PreRender</a>(<span class="keywordtype">object</span> sender, EventArgs e)
<a name="l00219"></a>00219     {
<a name="l00220"></a>00220         pnlPager.Visible = <a class="code" href="classcontrols__ctrl_pager.html#a05113b99a7c100bb0f9132ce93ef9322">ItemCount</a> &gt; 0;
<a name="l00221"></a>00221     }
<a name="l00222"></a>00222 
<a name="l00223"></a>00223 <span class="preprocessor">    #endregion PAGE EVENTS</span>
<a name="l00224"></a>00224 <span class="preprocessor"></span>}
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Klasy</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Przestrzenie nazw</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Pliki</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Funkcje</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Zmienne</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Wyliczenia</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Właściwości</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Zdarzenia</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"/><address style="text-align: right;"><small>Wygenerowano Mon Nov 9 06:08:19 2009 dla eCommerce programem&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
